﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store_Keeper/Store_Keeper.master" AutoEventWireup="true" CodeFile="SK_AddNewStock.aspx.cs" Inherits="Store_Keeper_SK_Add" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 131px;
        }
        .style4
        {
            width: 161px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

        <table  width="100%">
                <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3" >
                        &nbsp;</td>
                    <td class="style14">
                        &nbsp;</td>
                    <td class="style25" >
                        &nbsp;</td>
                <td >
                    &nbsp;</td>
                    <td>
                        &nbsp;</td>
            </tr>
                <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3" >
                        &nbsp;</td>
                    <td class="style14">
                        &nbsp;</td>
                    <td class="style25" >
                        &nbsp;</td>
                <td >
                    &nbsp;</td>
                    <td>
                        &nbsp;</td>
            </tr>
                <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3" >
                        &nbsp;</td>
                    <td class="style14">
                    <strong>Item&nbsp; Name</strong></td>
                    <td class="style25" >
                        <asp:DropDownList ID="DropDownList4" runat="server" 
                            DataSourceID="SqlDataSource1" DataTextField="Pro_Name" DataValueField="Pro_ID" 
                            Width="150px" 
                            AutoPostBack="True" 
                            onselectedindexchanged="DropDownList4_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                <td >
                    &nbsp;</td>
                    <td>
                        &nbsp;</td>
            </tr>
                <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3" >
                        &nbsp;</td>
                    <td class="style14">
                        &nbsp;</td>
                    <td class="style25" >
                        &nbsp;</td>
                <td >
                    &nbsp;</td>
                    <td>
                        &nbsp;</td>
            </tr>
                <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3" >
                        <strong>Item Code</strong></td>
                    <td class="style14">
                       
                        <dx:ASPxTextBox  ID="Productid" runat="server" ClientIDMode="AutoID" 
                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="150px">
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                                <RequiredField ErrorText="Please fill this feild" IsRequired="True" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                    <td class="style25" >
                        <strong>Product Code</strong></td>
                <td >
                    <dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ClientIDMode="AutoID" 
                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                        SelectedIndex="0" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                        ValueType="System.String" Width="150px">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="A" Value="A" />
                            <dx:ListEditItem Text="B" Value="B" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ButtonStyle Width="11px">
                        </ButtonStyle>
                        <ValidationSettings ErrorText="Error has occurred">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Please fill this field" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                    <td>
                        &nbsp;</td>
            </tr>
            <tr>
                <td class="style4"  >
                    &nbsp;</td>
                <td class="style3" >
                        <strong>
                        <asp:Label ID="Label4" runat="server" Text="Category Name" Width="100px" 
                            CssClass="style24"></asp:Label>
                        </strong></td>
                <td class="style14">
                    <dx:ASPxTextBox ID="catname" runat="server" Width="150px">
                    </dx:ASPxTextBox>
                </td>
                <td class="style25" >
                        <strong>Subcategory ID</strong></td>
                <td >
                    <dx:ASPxTextBox ID="subcatname" runat="server" Width="150px">
                    </dx:ASPxTextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3" >
                    <strong>Item Brand</strong></td>
                <td class="style14">
                    <dx:ASPxTextBox ID="brand" runat="server" ClientIDMode="AutoID" Width="150px">
                    </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    <strong>Stock Code</strong></td>
                <td>
                    <dx:ASPxTextBox ID="ASPxTextBox3" runat="server" Width="150px">
                    </dx:ASPxTextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                    <strong><span class="style24">Purchase</span>&nbsp;<span class="style24">Price</span></strong></td>
                <td class="style14">
                    <dx:ASPxTextBox ID="purchaseprice" runat="server" ClientIDMode="AutoID" 
                        DisplayFormatString="Rs.{0}" Width="150px">
                        <MaskSettings Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                        <ValidationSettings>
                            <RequiredField ErrorText="Please Fill this field" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    <strong>Retail Price </strong></td>
                <td>
                    <dx:ASPxTextBox ID="retailprice" runat="server" AutoPostBack="True" 
                        DisplayFormatString="Rs.{0}" 
                       Width="150px" ontextchanged="retailprice_TextChanged">
                        <MaskSettings Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                        <ValidationSettings>
                            <RequiredField ErrorText="Please Fill this field" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                    <strong>Quantity</strong></td>
                <td class="style14">
                    <dx:ASPxTextBox ID="ASPxTextBox4" runat="server" Width="150px">
                    </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    &nbsp;&nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
                            
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                        <span class="style24"><strong>Distributor Price</strong></span></td>
                <td class="style14">
                        <dx:ASPxTextBox ID="productprice" runat="server" ClientIDMode="AutoID" 
                            DisplayFormatString="Rs.{0}" Width="150px" BackColor="#D8E3B6">
                            <MaskSettings IncludeLiterals="DecimalSymbol" 
                                Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                            <ValidationSettings>
                                <RequiredField ErrorText="Please Fill this field" IsRequired="True" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
                            
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                        <strong>Point Value</strong></td>
                <td class="style14">
                        <dx:ASPxTextBox ID="pointvalue" runat="server" AutoPostBack="True" 
                            ClientIDMode="AutoID" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                            CssPostfix="BlackGlass" 
                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100px" 
                            BackColor="#D8E3B6">
                            <MaskSettings Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                            <ValidationSettings>
                                <ErrorFrameStyle ImageSpacing="4px">
                                    <ErrorTextPaddings PaddingLeft="4px" />
                                </ErrorFrameStyle>
                                <RequiredField ErrorText="Please Enter Point Value to this Product" 
                                    IsRequired="True" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
                            
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                <strong>
                <dx:ASPxLabel ID="ASPxLabel1" runat="server" ClientIDMode="AutoID" 
                    style="font-weight: 700" Text="Business Value">
                </dx:ASPxLabel>
                </strong>
                </td>
                <td class="style14">
                <dx:ASPxTextBox ID="businesspoint" runat="server" BackColor="#D8E3B6" 
                    ClientIDMode="AutoID" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" 
                    CssPostfix="Aqua" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" 
                    Width="75px">
                    <MaskSettings Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                    <ValidationSettings>
                        <ErrorFrameStyle ImageSpacing="4px">
                            <ErrorTextPaddings PaddingLeft="4px" />
                        </ErrorFrameStyle>
                    </ValidationSettings>
                </dx:ASPxTextBox>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
                            
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                    <td class="style3">
                        <strong>Item image</strong></td>
                <td class="style14">
                        <strong>
                        <asp:FileUpload ID="FileUpload1" runat="server" class="multi" Width="200px" />
                        </strong>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
                            
            <tr>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style3">
                        <strong>Status</strong></td>
                <td class="style14">
                        <asp:DropDownList ID="DropDownList3" runat="server" Width="150px">
                            <asp:ListItem>Show</asp:ListItem>
                            <asp:ListItem>Hide</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                </td>
                <td class="style25">
                    <dx:ASPxButton ID="ASPxButton2" runat="server" 
                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                        
                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                        Text="Add New Product" onclick="ASPxButton2_Click" >
                    </dx:ASPxButton>
                </td>
                <td>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                        SelectCommand="SELECT [Pro_ID], [Pro_Name] FROM [Tbl_Product]">
                    </asp:SqlDataSource>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
                            
    </table>
                
</asp:Content>

